package com.atguigu.srb.core.service;

import com.atguigu.srb.core.entity.UserInfo;
import com.atguigu.srb.core.entity.vo.UserCenterIndexVo;
import com.atguigu.srb.core.entity.vo.UserInfoVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 用户基本信息 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-06-30
 */
public interface UserInfoService extends IService<UserInfo> {

    void registry(UserInfoVo userInfoVo);

    String login(UserInfo userInfo, HttpServletRequest request);

    UserInfo getInfo(String token);

    UserCenterIndexVo getUserInfo(String token);

    Page<UserInfo> pageList(UserInfo userInfo,Integer pageNum, Integer pageSize);

    UserInfo updateUserInfo(String token, String mobile, Integer userType);
    //根据token判断账户是否有绑定hfb账户
    UserInfo checkUserInfoByToken(String token);
    //根据userId判断账户是否有绑定hfb账户
    UserInfo checkUserInfoByUserId(Long userId);
}
